<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <img v-bind:src="imgUrl" v-bind:title="msg" :alt="msg">
    <img :src="imgUrl" :title="msg" :alt="msg">
</div>
<script src="vue.js"></script>
<script>
    /**
     * v-bind用于动态设置html的标签属性 比如：src、url、title、alt
     * 可以简写：':'
     */
    const app = new Vue({
        el: '#app',
        data: {
            imgUrl: './imgs/10-022.png',
            msg: 'hello 波仔'
        }
    })
</script>
</body>
</html>